package b_wait_notify;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package a_wait_notify
 * @date 2024/4/7 下午7:00
 */
public class test01 {
    public static void main(String[] args) {
        Baozipu baozipu = new Baozipu();
        Product product = new Product(baozipu);
        Cousumer cousumer = new Cousumer(baozipu);

         new Thread(product,"商店1").start();
         new Thread(product,"商店2").start();
         new Thread(product,"商店3").start();
         new Thread(cousumer).start();
         new Thread(cousumer).start();
         new Thread(cousumer).start();

    }
}
